class_name CardState
extends Node

enum State{
	BASE,
	CLICKED,
	DRAGGING,
	AIMING,
	RELEASED
}

signal transition(from:CardState,to:State)

@export var state:State

var card:Card

func enter()->void:
	pass

func exit()->void:
	pass

func onInput(_event:InputEvent)->void:
	pass

func onGuiInput(_event:InputEvent)->void:
	pass

func onMouseEntered()->void:
	pass

func onMouseExited()->void:
	pass

# 设置卡牌样式
func setStyle(style:StyleBoxFlat)->void:
	card.panel.set('theme_override_styles/panel',style)
